package net.lab1024.sa.admin.module.business.yct.yctTeeth.domain.form;

import io.swagger.v3.oas.annotations.media.Schema;
import java.time.LocalDate;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * 设备注册信息 新建表单
 *
 * @Author zhangben
 * @Date 2024-12-18 09:52:35
 * @Copyright 20241218
 */

@Data
public class EquipmentAddForm {

    @Schema(description = "设备id", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "设备id 不能为空")
    private Integer equipId;

    @Schema(description = "设备名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "设备名称 不能为空")
    private String equipName;

    @Schema(description = "电量", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "电量 不能为空")
    private Integer equipPower;

    @Schema(description = "状态(运行，停运未激活)", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "状态(运行，停运未激活) 不能为空")
    private Integer state;

    @Schema(description = "注册用户id", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "注册用户id 不能为空")
    private Integer userId;

    @Schema(description = "注册时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "注册时间 不能为空")
    private LocalDate registerDate;

    @Schema(description = "灯光", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "灯光 不能为空")
    private Integer light;

    @Schema(description = "设备图片", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "设备图片 不能为空")
    private String equipImage;

    @Schema(description = "设备特征:实体设备区分", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "设备特征:实体设备区分 不能为空")
    private String equipmentFeature;

}